package com.financing.wap.vo.admin;

import com.financing.wap.vo.BaseVO;
import org.apache.commons.lang.StringUtils;

import java.util.Date;

public class AdminArticleInfoVO extends BaseVO {



	private String publishedDate;//文章发布日期
	private String dstArticleCode;//文章code编码
	private String title;//文章标题
	private String resource;//文章来源1后台上传2用户所属
	private String wxPath;//文章微信地址
	private String url;//文章本地地址
	private String categories;//文章管理类型type
	private String thumbnail;//文章图片地址
	private String description;//文章描述
	private String content;//文章内容
	private String arcticleRecomment;//文章推荐1推2不推荐
	private Integer viewCount;//查看次数
	private Integer shareCount;//分享次数
	private String articleUploads;//文章上传者
	private String articleStatus;//文章状态
	private String complainStatus;//文章投诉状态
	private String queryComplainStatus;//文章投诉状态
	private Date createDate;

    private String createDateStart;//查询 创建时间开始
    private String createDateEnd;//查询 创建时间结束

    private Integer viewCountStart;//查看次数 开始
    private Integer viewCountEnd;//查看次数 开始

    private String articleTypeName;//分类名称
    
    private String userOpenid;//文章所属用户


	public String getArticleTypeName() {
		if(StringUtils.isNotBlank(categories)&&categories.equals("orther"))return "其他";
		if(StringUtils.isNotBlank(categories)&&categories.equals("zhuaqu"))return "抓取";
		return articleTypeName;
	}

	public void setArticleTypeName(String articleTypeName) {
		this.articleTypeName = articleTypeName;
	}

	public String getPublishedDate() {
		return publishedDate;
	}

	public void setPublishedDate(String publishedDate) {
		this.publishedDate = publishedDate;
	}

	public String getDstArticleCode() {
		return dstArticleCode;
	}

	public void setDstArticleCode(String dstArticleCode) {
		this.dstArticleCode = dstArticleCode;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getResource() {
		return resource;
	}

	public void setResource(String resource) {
		this.resource = resource;
	}

	public String getWxPath() {
		return wxPath;
	}

	public void setWxPath(String wxPath) {
		this.wxPath = wxPath;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getCategories() {
		return categories;
	}

	public void setCategories(String categories) {
		this.categories = categories;
	}

	public String getThumbnail() {
		return thumbnail;
	}

	public void setThumbnail(String thumbnail) {
		this.thumbnail = thumbnail;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getArcticleRecomment() {
		return arcticleRecomment;
	}

	public void setArcticleRecomment(String arcticleRecomment) {
		this.arcticleRecomment = arcticleRecomment;
	}

	public Integer getViewCount() {
		return viewCount;
	}

	public void setViewCount(Integer viewCount) {
		this.viewCount = viewCount;
	}

	public Integer getShareCount() {
		return shareCount;
	}

	public void setShareCount(Integer shareCount) {
		this.shareCount = shareCount;
	}

	public String getArticleUploads() {
		return articleUploads;
	}

	public void setArticleUploads(String articleUploads) {
		this.articleUploads = articleUploads;
	}

	public String getArticleStatus() {
		return articleStatus;
	}

	public void setArticleStatus(String articleStatus) {
		this.articleStatus = articleStatus;
	}

	public String getComplainStatus() {
		if(StringUtils.isBlank(complainStatus)){
			return "0";
		}else{
			return "1";
		}
	}

	public void setComplainStatus(String complainStatus) {
		this.complainStatus = complainStatus;
	}

	public String getQueryComplainStatus() {
		return queryComplainStatus;
	}

	public void setQueryComplainStatus(String queryComplainStatus) {
		this.queryComplainStatus = queryComplainStatus;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

    public String getCreateDateStart() {
        return createDateStart;
    }

    public void setCreateDateStart(String createDateStart) {
        this.createDateStart = createDateStart;
    }

    public String getCreateDateEnd() {
        return createDateEnd;
    }

    public void setCreateDateEnd(String createDateEnd) {
        this.createDateEnd = createDateEnd;
    }

	public Integer getViewCountStart() {
		return viewCountStart;
	}

	public void setViewCountStart(Integer viewCountStart) {
		this.viewCountStart = viewCountStart;
	}

	public Integer getViewCountEnd() {
		return viewCountEnd;
	}

	public void setViewCountEnd(Integer viewCountEnd) {
		this.viewCountEnd = viewCountEnd;
	}

	public String getUserOpenid() {
		return userOpenid;
	}

	public void setUserOpenid(String userOpenid) {
		this.userOpenid = userOpenid;
	}

}
